package com.eastfair.home.api;

import com.eastfair.core.base.R;
import com.eastfair.home.dto.BoothAcceptanceRecordDTO;
import com.eastfair.home.dto.BoothAcceptanceRecordQuery;
import com.eastfair.home.dto.SupervisionItemManagementQuery;
import com.eastfair.home.dto.VenueReportDTO;
import com.eastfair.home.vo.BoothAcceptanceRecordVO;
import com.eastfair.home.vo.SupervisionItemQuestionVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 主场报馆 feign.
 *
 * @author dqq
 * @date 2022 /11/2
 */
@FeignClient(value = "home")
public interface BoothAcceptanceRecordFeign {
    /**
     * 保存展台验收明细
     * @param dto dto
     * @return R
     */
    @PostMapping(value = "/boothAcceptanceRecord/saveBoothAcceptanceDetail")
    R<Boolean> saveBoothAcceptanceDetail(@RequestBody BoothAcceptanceRecordDTO dto);

    /**
     * 查询展台验收记录
     * @param query query
     * @return R
     */
    @PostMapping(value = "/boothAcceptanceRecord/getBoothAcceptanceRecord")
    R<List<BoothAcceptanceRecordVO>> getBoothAcceptanceRecord(@RequestBody BoothAcceptanceRecordQuery query);


    /**
     * 查询问卷.
     * @return the r
     */
    @ApiOperation("查询问卷")
    @PostMapping("/supervisionItemManagement/queryQuestion")
    R<List<SupervisionItemQuestionVO>> queryQuestion(@RequestBody SupervisionItemManagementQuery query);
}